Help: Instance Variables & Properties [iPhone]
Posted
by Devoted
on Stack Overflow
See other posts from Stack Overflow
or by Devoted
Published on 2010-06-13T00:30:29Z
Indexed on
2010/06/13
0:32 UTC
Read the original article
Hit count: 440
In something like this:
@interface Control_FunViewController : UIViewController {
UITextField *nameField;
UITextField *numberField;
}
@property (nonatomic, retain) IBOutlet UITextField *nameField;
@property (nonatomic, retain) IBOutlet UITextField *numberField;
I understand that "UITextField *nameField;" is an instance variable and "@property ..." is a property. But what do these individual things do?
I guess what I'm really asking is how the property is used for example in the implementation file (.m)
© Stack Overflow or respective owner